package cn.ikun.mf.jdbc;

import com.mysql.jdbc.Driver;

import java.sql.DriverManager;

public class Appjdbc {
    public static void main(String[] args) throws Exception{
        //加载mysql的驱动类
        Class.forName("com.mysql.jdbc.Driver");
        String url="jdbc:mysql://localhost:3306/test?useSSL=false";
        String username="root";
        String password="5240";

        DriverManager.getConnection(url,username,password);

    }
}

